package com.wxb.service.impl;

import com.wxb.domain.MallOrderGoodsEntity;
import com.wxb.mapper.MallOrderGoodsMapper;
import com.wxb.service.IMallOrderGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Date 2025-05-28 14:02
 * @Version 1.0
 * @Description
 * @ClassName MallOrderGoodsServiceImpl
 **/
@Service
public class MallOrderGoodsServiceImpl implements IMallOrderGoodsService {
    @Autowired
    private MallOrderGoodsMapper orderGoodsDao;


    public MallOrderGoodsEntity queryObject(Integer id) {
        return orderGoodsDao.queryObject(id);
    }


    public List<MallOrderGoodsEntity> queryList(Map<String, Object> map) {
        return orderGoodsDao.queryList(map);
    }


    public int queryTotal(Map<String, Object> map) {
        return orderGoodsDao.queryTotal(map);
    }


    public void save(MallOrderGoodsEntity order) {
        orderGoodsDao.save(order);
    }


    public void update(MallOrderGoodsEntity order) {
        orderGoodsDao.update(order);
    }


    public void delete(Integer id) {
        orderGoodsDao.delete(id);
    }


    public void deleteBatch(Integer[] ids) {
        orderGoodsDao.deleteBatch(ids);
    }
}
